import request from '@/utils/request'

const api_name = '/admin/activity/coupons'

// 保存优惠卷
export const SaveCoupon = data => {
    return request({
        url: `${api_name}/saveCoupon`,
        method: 'post',
        data
    })
}

// 分页查询接口
export const SelectCouponPage = data => {
    return request({
        url: `${api_name}/page`,
        method: 'post',
        data
    })
}

// 发放优惠卷接口
export const IsCoupon = (id,data) => {
    return request({
        url: `${api_name}/${id}/issue`,
        method: 'put',
        data
    })
}